/*
 * User: ophir
 * Date: Sep 8, 2008
 * Time: 12:07:54 AM
 */
package org.conann;

import org.conann.common.ConcurrentStaticCache;

import java.lang.annotation.Annotation;

public class ScopeRegistry extends ConcurrentStaticCache<Class<? extends Annotation>, Scope> {

    private static final ScopeRegistry instance = new ScopeRegistry();

    @Override
    public Scope create(Class<? extends Annotation> type) {
        return new Scope(type);
    }

    public static ScopeRegistry getInstance() {
        return instance;
    }
}